package com.crm.crm.service;

import com.crm.crm.domain.SysDictData;
import com.crm.crm.domain.SysDictType;
import com.crm.crm.domain.dto.dict.DictDataDto;
import com.crm.crm.domain.dto.dict.DictTypeDto;
import com.crm.crm.domain.vo.dict.DictDataVo;
import com.crm.crm.domain.vo.dict.DictTypeVo;

import java.util.List;

public interface DictService {
    List<SysDictData> getDictData(String dictType);

    DictTypeVo getDictTypePage(DictTypeDto dictTypeDto);

    boolean addDictType(SysDictType sysDictType);

    SysDictType getDictTypeById(Long dictId);

    List<SysDictType> getDictTypeList();

    DictDataVo getDictDataList(DictDataDto dictDataDto);

    boolean addDictData(SysDictData sysDictData);

    boolean updateDictType(SysDictType sysDictType);

    boolean deleteDictType(String[] ids);

    SysDictData getDictDataById(Long dictCode);

    boolean updateDictData(SysDictData sysDictData);

    boolean deleteDictData(String[] ids);

    void clearCache();
}
